<table width="100%">
  <tr>
    <th>Name</th>
  </tr>

<% categories.each do |category| %>
  <tr>
    <td><%=link_to h(category.name), category_path( category ) %></td>
    <td>(<%=format_products_count category.count_nested_products %>)</td>
  </tr>
<% end %>
</table>